import mongoose from "mongoose";
const cateorySchema = new mongoose.Schema({
    name: {
        type: String,
        required: true
    },
    level: {
        type: String,
        required: true
    },
    parent: {
        type: mongoose.Schema.Types.ObjectId, ref: 'Category'
    },
    createAt: {
        type: Number,
        default: null
    },
    updateAt: {
        type: Number,
        default: null
    }
})

export default cateorySchema;